<template>
  <div class="home">
    <el-container>
      <el-header>
        <Header />
      </el-header>
      <el-container>
        <el-aside width="200px">
          <Side />
        </el-aside>
        <el-main>
          <div class="breadcrumb"><Breadcrumb /></div>
          <router-view></router-view
        ></el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import Side from "./components/Side.vue";
import Header from "./components/Header.vue";
import Breadcrumb from "@/components/Breadcrumb.vue";
</script>

<style lang="less" scoped>
.home {
  :deep(.el-header) {
    height: 70px;
    background-color: #409eff;
  }
  :deep(.el-aside),
  :deep(.el-main) {
    height: calc(100vh - 70px);
    width: auto;

    &::-webkit-scrollbar {
      width: 0;
    }
  }
  :deep(.el-aside) {
    background-color: #304156;
  }
  :deep(.el-header) {
    display: flex;
    align-items: center;
  }
  .breadcrumb {
    margin-bottom: 20px;
  }
}
</style>
